package com.hmall.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.hmall.item.pojo.Item;

import com.hmall.item.pojo.Searchdto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ItemMapper extends BaseMapper<Item> {



    /*商品IP查询*/
    Item findById(Long id);

    @Select("select * from mall_db_item.tb_item")
    Page<Item> pagelist();

     Page<Item> page(Searchdto searchDto);
 }
